﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoteMng.aspx.cs" Inherits="Jy123.Web.Manage.User.VoteMng" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/custom/jquery.ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <title>无标题页</title>

    <script language="javascript" type="text/javascript">
    function del(id)
    {
        if(confirm("确定删除？"))
        {
            self.location="?Type=del&id="+id;
        }
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <h4>
        <a href="#"><span>投票管理</span></a></h4>
    <div class="register">
        <ul>
            <li class="w85r">名字：</li><li><asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </li></ul>
            <ul><li class="w85r">投票标题：</li><li><asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
            </li>
        </ul>
        <ul class="bb"><li class="w85r"></li>
            <li>
                <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="btnsty" />
            </li>
        </ul>
    </div>
    <div>
        <asp:Repeater runat="server" ID="RptData">
            <HeaderTemplate>
                <table width="100%" border="0" cellpadding="3" cellspacing="1">
                    <tr>
                        <td align="center" style="width: 10%;">
                            头像
                        </td>
                        <td align="center" style="width: 20%;">
                            名字
                        </td>
                        <td align="center" style="width: 10%;">
                            投票标题
                        </td>
                        <td align="center" style="width: 15%;">
                            创建时间
                        </td>
                        <td align="center" style="width: 15%;">
                            评论数
                        </td>
                        <td align="center" style="width: 20%;">
                            操作<%--<input type="checkbox" value="1" onclick="javascript:checkall();" />--%>
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <img src="<%# Eval("Portrait")%>" alt="<%# DataBinder.Eval(Container.DataItem, "UserName")%>" /></a>
                    </td>
                    <td align="center">
                        <%#Eval("UserName") %>
                    </td>
                    <td align="center">
                        <%# DataBinder.Eval(Container.DataItem, "Title")%>
                    </td>
                    <td align="center">
                        <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
                    </td>
                    <td align="center">
                        <%# DataBinder.Eval(Container.DataItem, "CommentCount")%>
                    </td>
                    <td align="center">
                        <a class="btnsty" href="javascript:del(<%# Eval("ID")%>);">删除</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr>
                    <td>
                        <% =string.Format("当前{0}/{1},共{2}条记录", cpage, count[1], count[0]) + PageString((int)count[1], cpage, "VoteMng.aspx?page=$num$")%>
                    </td>
                </tr>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
